<%-- 
    Document   : AddStatus
    Created on : Oct 2, 2011, 10:36:11 AM
    Author     : James
--%>

<%@page import="BusinessLogic.Constants"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/xml"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<status>
<%
    ArrayList data = (ArrayList) request.getAttribute("data");
    int result = ((Integer) data.get(0)).intValue();
    if (result == Constants.STATUS_SUCCESSFUL) {
%>
Status : Successfully added the new entity.
<%
   } else if (result == Constants.STATUS_INVALID_INPUT) {

%>
Status : Invalid input
<%
   } else if (result == Constants.STATUS_SESSION_EXPIRED) {

%>
Status : Your session has expired. Please login again.
<%
   } else if (result == Constants.STATUS_NOT_FOUND) {

%>
Status : Cannot find the required entity.
<%
   } else if (result == Constants.STATUS_NOT_ALLOWED) {

%>
Status : Not allowed.
<%
   }
%>
</status>
